@echo off
echo 发布测试活动到北京坐标...

REM 第一个活动：简单测试
curl -X POST "http://124.71.77.44:2233/activities/" ^
  -H "Content-Type: application/json" ^
  -d "{\"activityTitle\":\"北京朝阳区聚餐活动\",\"publisherId\":62,\"publisherNickname\":\"Flutter测试用户\",\"activityPublishTime\":\"2025-01-30 18:00:00\",\"longitude\":116.404,\"latitude\":39.915,\"activityDetails\":\"周末聚餐活动\",\"activityLocation\":\"北京市朝阳区CBD商务区\",\"activityMaxParticipants\":8,\"free\":1,\"timestamp\":1735111200}"

echo.
echo 等待5秒再发布第二个活动...
timeout /t 5 /nobreak >nul

REM 第二个活动
curl -X POST "http://124.71.77.44:2233/activities/" ^
  -H "Content-Type: application/json" ^
  -d "{\"activityTitle\":\"北京朝阳公园晨跑\",\"publisherId\":62,\"publisherNickname\":\"Flutter测试用户\",\"activityPublishTime\":\"2025-01-31 07:00:00\",\"longitude\":116.404,\"latitude\":39.915,\"activityDetails\":\"早晨一起晨跑锻炼\",\"activityLocation\":\"北京市朝阳区朝阳公园\",\"activityMaxParticipants\":15,\"free\":1,\"timestamp\":1735111205}"

echo.
echo 活动发布完成！
pause
